package com.hui.blog_server.service.impl;

import com.hui.blog_server.entity.Languages;
import com.hui.blog_server.mapper.LanguagesMapper;
import com.hui.blog_server.service.LanguagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 彩色的小灰
 */
@Service
public class LanguagesServiceImpl implements LanguagesService {

    @Autowired
    private LanguagesMapper languagesMapper;

    @Override
    public List<Languages> getAllLanguages() {
        return languagesMapper.selectList(null);
    }
}
